/**
 * Created by ray on 17-6-8.
 */
/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */
 
 
import React,{Component,PropTypes} from 'react';
import { Image,View,StyleSheet} from 'react-native';


class TabBarItem extends Component {
    constructor(props){
        super(props);

    }
   render(){
       return(
       <View style={styles.tabBarContainer}>
           <Image
               source={this.props.focused ? this.props.selectedImage : this.props.normalImage}
               style={styles.iconStyle}
           />
       </View>

       );
   }
}



const styles = StyleSheet.create({
   tabBarContainer:{
     marginTop:5
   },
   iconStyle:{
       width:25,
       height:25,
   }
});



export default TabBarItem;